package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author 军哥
 * @version 1.0
 * @description: 登录信息
 * @date 2024/6/5 11:22
 */

@Data
public class LoginInfoVo implements Serializable {
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, message = "密码长度不小于6位")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])[a-zA-Z0-9]{6,}$", message = "密码必须包含字母和数字")
    private String userPass;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String userMobile;

    private String userCode;
}
